package reusingclass;


public class Exercise7 {
	public static void main(String[] args) {
		C1 c = new C1();
	}
}

class A1 {
	A1(String s) {
		System.out.println("A1 constructor says: " + s); 
	}
}

class B1 {
	B1(String s) {
		System.out.println("B1 constructor says: " + s);
	}
}

class C1 extends A1 {
	private B1 b;
	
	C1() {
		super("hello");
		b = new B1("world");
		System.out.println("C1 constructor");
	}
}
